Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Lines

A line is a straight segment in three-dimensional space defined by its two endpoints, with an optional set of attributes. (In addition, each vertex can have a set of attributes.) A line is defined by the TQ3LineData data type. See "Creating and Editing Lines" for a description of the routines you can use to create and edit lines. Figure 19 shows a line.

Figure 19 A line

typedef struct TQ3LineData {
    TQ3Vertex3D                         vertices[2];
    TQ3AttributeSet                     lineAttributeSet;
} TQ3LineData;
vertices
An array of two vertices.
lineAttributeSet
A set of attributes for the line. The value in this field is NULL if no line attributes are defined.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |